// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/**
 * 预览模块
 * @returns
 */
export async function preview() {
  return request<BaseResponseBean.response<UserAnalysisData.Preview[]>>(
    '/user/analysis/preview',
    {
      method: 'POST',
    },
  );
}


/**
 * 预览模块 - 组织树
 * @returns
 */
export async function treeOrganization() {
  return request<BaseResponseBean.response<UserAnalysisData.Organization[]>>(
    '/user/analysis/organization/tree',
    {
      method: 'POST',
    },
  );
}


/**
 * 预览模块 - 用户分页
 * @returns
 */
export async function pageAccount(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<UserAnalysisData.Account[]>>(
    '/user/analysis/account/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}




/**
 * 数据概况
 * @param options 
 * @returns 
 */
export async function overview(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<UserAnalysisData.Overview>>(
    '/user/analysis/overview',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**
 * 用户登录 列表
 * @param options 
 * @returns 
 */
 export async function pageLoginlog(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<UserData.Loginlog[]>>(
    '/user/analysis/loginlog/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
